package org.csmz.xg2333;

public class Example05 {
    public static void main(String[] args)
    {
        int b = 10;
        int c = b++;
        int d = ++b;
        System.out.println("c = " + c);
        System.out.println("d = " + d);
        int a = 1;
        a += b+=c +=c+= d++;    //d++会等到这一行的赋值运算执行完后，才加一
        System.out.println("a = " + a);
        int e = a%b;
        System.out.println("b = " + b);
        System.out.println("c = " + c);
        System.out.println("d = " + d);
        System.out.println("e = " + e);
    }
}
